var mongoose = require('mongoose')
var Schema = mongoose.Schema
var VoteBucketSchemaConfig = {
  versionKey: false,
  timestamps: {
    createdAt: 'created_at',
    updatedAt: false
  }
}

var VoteBucketSchema = new Schema({
  vote: {type: Schema.Types.ObjectId, ref: 'Vote'},
  voter: {type: Schema.Types.ObjectId, ref: 'User'},
  data: [String]
}, VoteBucketSchemaConfig)

exports = module.exports = VoteBucketSchema
